package com.example.hoasbackend.mapper;

import com.example.hoasbackend.model.AO.HotelAO;
import com.example.hoasbackend.model.VO.HotelInfoVO;
import com.example.hoasbackend.model.domain.Hotel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lhx
 * @since 2022-03-03
 */
@Repository
public interface HotelMapper extends BaseMapper<Hotel> {

    List<Hotel> selectAllByCityName(@Param("city") String city);
    List<HotelInfoVO> selectByMultipleConditions(HotelAO hotelAO);

    List<HotelInfoVO> selectByPosition(double lat, double lng);

    HotelInfoVO selectHotelVoById(Long id);
}
